﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.MultiUserAdminPageBase" %>
<ali:Get ID="LinkCategory" Object="LinkCategory" InnerID="Request.QueryString['ID']" Validate="True" />
<section data-page="link_category_edit" data-title="编辑链接类别" data-id="<%=LinkCategory[InnerID]%>">
	<div class="path1"><span>您的位置：</span><a href="list.aspx" target="ali-navtab">链接类别列表</a> → <b class="<%=ContentLang%>Font"><%=LinkCategory[Name]%></b></div>
	<form action="" class="post">
		<div class="post-body">
			<table class="post-table">
				<tr>
					<th>上级类别：</th>
					<td>
						<select name="ParentID" class="<%=ContentLang%>Font" data-ali-widget="combo" data-tree="true" data-root="0">
							<option value="" data-item="" data-parent="0">未指定</option>
							<ali:Tree Object="LinkCategory">
								<ali:Record>
									<%If Guid.Equals(ID, LinkCategory[ParentID])%>
										<option value="<%=ID%>" data-item="<%=ParentChain%>.<%=InnerID%>" data-parent="<%=ParentChain%>" selected><%=Name%></option>
									<%Else%>
										<option value="<%=ID%>" data-item="<%=ParentChain%>.<%=InnerID%>" data-parent="<%=ParentChain%>"><%=Name%></option>
									<%EndIf%>
									<%=ChildRecords%>
								</ali:Record>
							</ali:Tree>
						</select>
					</td>
				</tr>
				<tr>
					<th>名称：</th>
					<td><input type="text" name="Name" value="<%=LinkCategory[Name]%>" size="60" maxlength="255" class="ali-input ali-input-required <%=ContentLang%>Font"></td>
				</tr>
			</table>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>